package bank.model.dao;

import java.util.List;

import bank.model.vo.Department;

public interface DepartmentDAO {
	public List getChildren(Integer id) throws Exception;
	public List getStaff(int id);
	public List getBoss(int id);
	public List getPayments(int id);
	/**
	 * 
	 * @param children - true: if true, deletes even if there are subdepartments
	 * @param id - id of department that should be deleted
	 * @throws Exception
	 */
	public void delete(boolean children, int id) throws Exception;
	public void add(String name, int pid) throws Exception;
	public void update(int id, Department dept) throws Exception;
	public Department findById(int id) throws Exception;
}
